!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("rb_wixui.thunderbolt[FreemiumBannerDesktop]",["react"],t):"object"==typeof exports?exports["rb_wixui.thunderbolt[FreemiumBannerDesktop]"]=t(require("react")):e["rb_wixui.thunderbolt[FreemiumBannerDesktop]"]=t(e.React)}("undefined"!=typeof self?self:this,(function(e){return function(){var t={5329:function(t){"use strict";t.exports=e},448:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{rootClass:t,dotClass:r}=e;return a.createElement("svg",{className:t,viewBox:"0 0 28 10.89","aria-label":"wix"},a.createElement("path",{d:"M16.02.2c-.55.3-.76.78-.76 2.14a2.17 2.17 0 0 1 .7-.42 3 3 0 0 0 .7-.4A1.62 1.62 0 0 0 17.22 0a3 3 0 0 0-1.18.2z",className:r}),a.createElement("path",{d:"M12.77.52a2.12 2.12 0 0 0-.58 1l-1.5 5.8-1.3-4.75a4.06 4.06 0 0 0-.7-1.55 2.08 2.08 0 0 0-2.9 0 4.06 4.06 0 0 0-.7 1.55L3.9 7.32l-1.5-5.8a2.12 2.12 0 0 0-.6-1A2.6 2.6 0 0 0 0 .02l2.9 10.83a3.53 3.53 0 0 0 1.42-.17c.62-.33.92-.57 1.3-2 .33-1.33 1.26-5.2 1.35-5.47a.5.5 0 0 1 .34-.4.5.5 0 0 1 .4.5c.1.3 1 4.2 1.4 5.5.4 1.5.7 1.7 1.3 2a3.53 3.53 0 0 0 1.4.2l2.8-11a2.6 2.6 0 0 0-1.82.53zm4.43 1.26a1.76 1.76 0 0 1-.58.5c-.26.16-.52.26-.8.4a.82.82 0 0 0-.57.82v7.36a2.47 2.47 0 0 0 1.2-.15c.6-.3.75-.6.75-2V1.8zm7.16 3.68L28 .06a3.22 3.22 0 0 0-2.3.42 8.67 8.67 0 0 0-1 1.24l-1.34 1.93a.3.3 0 0 1-.57 0l-1.4-1.93a8.67 8.67 0 0 0-1-1.24 3.22 3.22 0 0 0-2.3-.43l3.6 5.4-3.7 5.4a3.54 3.54 0 0 0 2.32-.48 7.22 7.22 0 0 0 1-1.16l1.33-1.9a.3.3 0 0 1 .57 0l1.37 2a8.2 8.2 0 0 0 1 1.2 3.47 3.47 0 0 0 2.33.5z"}))};var s={freemiumBanner:"N6oJ0x",hidden:"YXHWcl",visible:"crE6R7",rtl:"I9E5U_",ltr:"Oxzvyr",desktop:"L27qsU",root:"EFLBov","desktop-top":"YD5pSO",desktopTop:"YD5pSO",overlay:"mlxr6g",contents:"aGHwBE",text:"areOb6",wixLogoWrapper:"dTTUA9",wixLogo:"_4i7Zy",dot:"o4sLYL",com:"uJDaUS",button:"O0tKs2"};const i="bannerOverlay",l="bannerLogo";var c="{Wix}";const d=e=>e.bannerText.indexOf(c)>=0;function u(e){var t,a,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;tObject.entries(e).reduce(((e,[t,a])=>(t.includes("data-")&&(e[t]=a),e)),{});const m=13,b=27;function x(e){return t=>{t.keyCode===e&&(t.preventDefault(),t.stopPropagation(),t.currentTarget.click())}}const v=x(32),y=x(m),g=e=>{y(e),v(e)},h=(x(b),{root:"linkElement"}),E=(e,r)=>{const{href:o,role:n,target:s,rel:i,className:l="",children:c,linkPopupId:d,anchorDataId:u,anchorCompId:p,tabIndex:m,dataTestId:b=h.root,title:x,onClick:E,onDoubleClick:k,onMouseEnter:L,onMouseLeave:w,onFocus:O,onFocusCapture:B,onBlurCapture:N,"aria-live":C,"aria-disabled":_,"aria-label":D,"aria-labelledby":T,"aria-pressed":M,"aria-expanded":S,"aria-describedby":j,"aria-haspopup":A,"aria-current":I,dataPreview:F,dataPart:P}=e,z=void 0!==e.activateByKey?e.activateByKey:(e=>e?"SpaceOrEnter":"Space")(d);let W;switch(z){case"Enter":W=y;break;case"Space":W=v;break;case"SpaceOrEnter":W=g;break;default:W=void 0}return void 0!==o||d?a.createElement("a",t()({},f(e),{"data-testid":b,"data-popupid":d,"data-anchor":u,"data-anchor-comp-id":p,"data-preview":F,"data-part":P,href:o||void 0,target:s,role:d?"button":n,rel:i,className:l,onKeyDown:W,"aria-live":C,"aria-disabled":_,"aria-label":D,"aria-labelledby":T,"aria-pressed":M,"aria-expanded":S,"aria-haspopup":A,"aria-describedby":j,"aria-current":I,title:x,onClick:E,onMouseEnter:L,onMouseLeave:w,onDoubleClick:k,onFocus:O,onFocusCapture:B,onBlurCapture:N,ref:r,tabIndex:d?0:m}),c):a.createElement("div",t()({},f(e),{"data-testid":b,"data-preview":F,"data-part":P,className:l,tabIndex:m,"aria-label":D,"aria-labelledby":T,"aria-haspopup":A,"aria-disabled":_,"aria-expanded":S,title:x,role:n,onClick:E,onDoubleClick:k,onMouseEnter:L,onMouseLeave:w,ref:r}),c)};var k=a.forwardRef(E);var L="ytGGBw",w="czJOIz";const O="ltr";var B=e=>{const{id:r="WIX_ADS",useOverlay:o=!1,href:n="",classNames:s=[O],className:l,children:c,styles:d,buttonText:u,textBeforeLogo:m,textAfterLogo:b,direction:x}=e,v=p(...s.map((e=>d[e])),d.desktopTop,"has-custom-focus");return a.createElement("div",t()({id:r},f(e),{className:p(l,w,L)}),o?a.createElement("div",{"data-testid":i,className:v}):a.createElement(k,{className:v,href:n,target:"_blank",rel:"nofollow"},a.createElement("span",{className:d.contents},a.createElement("span",{"data-hook":"freemium-text",className:d.text},m,c,b),a.createElement("span",{"data-hook":"freemium-button",className:d.button+" "+d[x]},u))))};const N={FreemiumBannerDesktop:{component:e=>{const{translations:r,direction:o}=e,{textBeforeLogo:i,textAfterLogo:u}=(e=>{let t=e.bannerText,a="";if(d(e)){const r=e.bannerText.split(c);t=r[0],a=r[1]}return{textBeforeLogo:t,textAfterLogo:a}})(r);return a.createElement(B,t()({},e,{styles:s,buttonText:r.buttonText,textBeforeLogo:i,textAfterLogo:u,direction:o,className:s.root}),d(r)&&a.createElement("div",{"data-testid":l,className:s.wixLogoWrapper},a.createElement("div",null,a.createElement(n,{rootClass:s.wixLogo,dotClass:s.dot})),a.createElement("div",{className:s.com},".com")))}}}}(),o}()})); //# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/thunderbolt/rb_wixui.thunderbolt[FreemiumBannerDesktop].b37d7cc0.bundle.min.js.map